#Goal for this example:

#Build a static library that #includes an always out of date header file
#that is included during the cpp compiler pass of the cuda library

configure_file_always(modified_cpp_header
  "${CMAKE_CURRENT_SOURCE_DIR}/static_contents.h.in"
  "${CMAKE_CURRENT_BINARY_DIR}/static_contents.h")

add_library(mod_cpp_dep_static STATIC static.cu)

add_executable(mod_cpp_dep main.cpp)
target_link_libraries(mod_cpp_dep PRIVATE mod_cpp_dep_static)

#specify where they can find the header
include_directories(mod_cpp_dep_static PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
include_directories(mod_cpp_dep PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
